package ace.module.product.core.impl.manager.generator.impl;

import ace.cmp.id.generator.api.LongIdGenerator;
import ace.module.product.core.impl.manager.generator.ProductSnGenerator;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * .
 * @author Caspar
 *
 */
@AllArgsConstructor
@Component
public class ProductSnGeneratorImpl implements ProductSnGenerator {

  private final LongIdGenerator idGenerator;

  @Override
  public String get() {
    return idGenerator.get().toString();
  }
}
